package com.mcxx.modules.statistics.dto;

import lombok.Data;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;


@Data
public class FundpayStateDTO {
    private String areaCode;
    private String areaName;





    private List<Integer> status;

    public static class FundSerial{

        public static int SUB_COUNTRY = 0;

        public static int SUB_CITY = 1;

        public static int POVERTY_COUNTRY_DISPERSE_BASIC = 2;

        public static int POVERTY_CITY_DISPERSE_BASIC = 3;

        public static int POVERTY_COUNTRY_FOCUS_BASIC = 4;

        public static int POVERTY_CITY_FOCUS_BASIC = 5;

        public static int POVERTY_COUNTRY_DISPERSE_NURSING = 6;

        public static int POVERTY_CITY_DISPERSE_NURSING = 7;

        public static int POVERTY_COUNTRY_FOCUS_NURSING = 8;

        public static int POVERTY_CITY_FOCUS_NURSING = 9;

        public static int TEMP_BANK = 10;

        public static int TEMP_CASH = 11;

        public static int TEMP_KIND = 12;
    }

    public FundpayStateDTO(String areaCode, String areaName){
        this.areaCode = areaCode;
        this.areaName = areaName;
        status = Arrays.asList(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1);
    }



    public void setSerialStatus(int serial, int status) {
        if(serial >= this.status.size() || serial < 0){
            return;
        }

        this.status.set(serial, status);
    }
}
